package com.mx.service.impl;

import com.mx.mapper.ArticleTagMapper;
import com.mx.pojo.ArticleTag;
import com.mx.service.ArticleTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArticleTagServiceImpl implements ArticleTagService{

    @Autowired
    ArticleTagMapper articleTagMapper;

    @Override
    public List<ArticleTag> findAid(int aid) {
        return articleTagMapper.findAid(aid);
    }

    @Override
    public List<ArticleTag> findTid(int tid) {
        return articleTagMapper.findTid(tid);
    }

    @Override
    public int save(ArticleTag articleTag) {
        return articleTagMapper.save(articleTag);
    }

    @Override
    public int delete(int aid) {
        return articleTagMapper.delete(aid);
    }
}
